﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

namespace Api.Ordering.Tool
{
    public class Result : IAsyncResult
    {
        public object AsyncState() {
            return null;
        }

        public WaitHandle AsyncWaitHandle => null;

        public bool CompletedSynchronously =>   true;

        public bool IsCompleted => true;


        public int Code { get; set; }

        public Object Data { get; set; }

        public string Msg { get; set; }

        object IAsyncResult.AsyncState => null;

        public Result(Object data,string text="") {

            this.Code = 0;
            this.Data = data;
            this.Msg = text;

        }

    }
}
